package com.service.impl;

import java.util.List;

import com.dao.UserAccountDao;
import com.enetiy.Useraccount;
import com.service.UseraccountService;

public class UseraccountServiceImpl implements UseraccountService {	
	private UserAccountDao accountDao;
	@Override
	public Useraccount selectUseraccount(String account) throws Exception {
		return accountDao.selectUseraccount(account);
	}
	@Override
	public void insetrUseraccount(Useraccount ua) throws Exception {
		accountDao.insetrUseraccount(ua);
	}
	public void setAccountDao(UserAccountDao accountDao) {
		this.accountDao = accountDao;
	}
	@Override
	public List<Useraccount> selectUseraccounts(int userid,int type) throws Exception {
		
		return accountDao.selectUseraccounts(userid,type);
	}
	@Override
	public void updateUseraccount(Useraccount ua) throws Exception {
		accountDao.updateUseraccount(ua);
		
	}
	@Override
	public Useraccount selectUseraccount(int userid, int type) throws Exception {
		return accountDao.selectUseraccount(userid, type);
	}
	@Override
	public Useraccount selUseraccountOpenId(String openid) throws Exception {
		return accountDao.selUseraccountOpenId(openid);
	}





	

}
